import type { NextApiRequest, NextApiResponse } from 'next'
import {mock,Random}from 'mockjs'

type Data = {
  name: string
}

export default function logout(
  req: NextApiRequest,
  res: NextApiResponse<Data>
) {
  res.status(200).json(mock({
    'list|1-10': [{
        'name|+1': [Random.cname(),Random.cname()],
        birthday:Random.date('yyyy-MM-dd'),
        address:Random.county(true)
    }]
}))
}
